﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace linkouqs.Gamekit
{

    public class Money : MonoBehaviour
    {
        void OnTriggerEnter2D(Collider2D collision)
        {

            CharacterController2D characterController2D;

            if (CharacterManager.Instance.TryGetCharacter(collision, out characterController2D))
            {
                gameObject.SetActive(false);
            }

        }

    }

}
